package com.pro.common.api.user.model.db;

import com.pro.common.api.CommonConst;
import com.pro.common.api.model.auth.subaccount.IOpenSubQuery;
import com.pro.common.api.model.dto.UserAmountKey;
import com.pro.common.api.statics.user.amount.model.base.AmountEntity;
import com.pro.framework.api.FrameworkConst;
import com.pro.framework.javatodb.annotation.JTDTable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;

@Data
@Schema(description = "用户数额信息")
@JTDTable(module = CommonConst.Modules.userFile,
        sequences = {
                "UNIQUE KEY `uk_userId_amountType` (`user_id`,`amount_type`)"
        })
public class UserAmount extends AmountEntity implements IOpenSubQuery {

    @Schema(description = "总量上限")
    private BigDecimal totalAmount;

    @Schema(description = "备注")
    private String remark;
}
